import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';

import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { NZ_I18N } from 'ng-zorro-antd/i18n';
import { zh_CN } from 'ng-zorro-antd/i18n';
import { registerLocaleData } from '@angular/common';
import zh from '@angular/common/locales/zh';
import { FormsModule } from '@angular/forms';
import { HttpClientModule } from '@angular/common/http';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { HttpClientService } from "./http/http-client.service";
import { HttpInterceptorProvider } from "./http/http-interceptor.provider";
import { ContainerModule } from "./view/container/container.module";

registerLocaleData(zh);

@NgModule({
	declarations: [
		AppComponent
	],
	imports: [
		BrowserModule,
		AppRoutingModule,
		FormsModule,
		HttpClientModule,
		BrowserAnimationsModule,
		ContainerModule,
	],
	providers: [
		HttpClientService,
		HttpInterceptorProvider,
		{ provide: NZ_I18N, useValue: zh_CN },
	],
	bootstrap: [AppComponent]
})
export class AppModule {
}
